import pygame
import time
import os

def main():
    pygame.init()
	
    fps = 60
    screen = pygame.display.set_mode((640, 480))
    clock = pygame.time.Clock()
#    image = pygame.image.load('dinosaur.jpg')

        #Commence loading files.
    maps = {}
    for infile in os.listdir('maps'):
        maps[str(infile)] = pygame.image.load(infile)
        print "Map " + infile + " image file loaded."
	
    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                return
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_ESCAPE:
                    return

		
		
        screen.fill((0, 0, 0))
		
        pygame.display.flip()
        clock.tick(fps)

main()
